<script>
	export default {
		onLaunch: function() {
			// this.getUserLogin()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			//获取用户登录信息
			getUserLogin(){
				return new Promise((resolve, reject) => {
					this.$api.postLogin({
						
					}, true, (res) => {
						this.userInfo = res;
						//保存用户登录状态
						uni.setStorageSync("TOKEN",res.token)
						resolve("success")
					})
				})
			},
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import 'common/style.css';
	@import '/static/lx-calendar/fonts/iconfont.css';
	page
	{
		letter-spacing: 1rpx;
		/* background: #f3f4f6; */
		background: #fafafa;
		position: relative;
	}
</style>
